package com.unbox.generate.service;

import com.unbox.generate.entity.DBInfo;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface IGeneratorService {

    /**
     * 获取所有表
     * @param tableInfo
     * @return
     * @throws SQLException
     * @throws ClassNotFoundException
     */
    List<Map<String,String>> getTableList(DBInfo tableInfo) throws SQLException, ClassNotFoundException;

    /**
     * 获取表详情
     * @param tableInfo
     * @return
     * @throws SQLException
     * @throws ClassNotFoundException
     */
    List<Map<String,String>> getTableInfo(DBInfo tableInfo) throws SQLException, ClassNotFoundException;
}
